Imports System.Xml.Serialization
Namespace Mapping

    Public Class FunctionMappingAssociationEnd
        Inherits XEntityModelElementBase

        ''' <summary>Initializes an instance of the <see cref="FunctionMappingAssociationEnd" /> class.
        ''' This is the default constructor for this class.</summary>
        Public Sub New()
            MyBase.New("AssociationEnd", CSXmlNamespace)
        End Sub

        ''' <summary>Initializes an instance of the <see cref="FunctionMappingAssociationEnd" /> class.</summary>
        ''' <param name="other">An <see cref="System.Xml.Linq.XElement"/> object to copy from.</param>
        Public Sub New(ByVal other As XElement)
            MyBase.New(other)
        End Sub

        Private __scalarProperty As FunctionMappingScalarPropertyCollection

        <AutoLoad()> _
        <XmlElement("ScalarProperty", GetType(FunctionMappingScalarProperty))> _
        Public ReadOnly Property ScalarProperties() As FunctionMappingScalarPropertyCollection
            Get
                If (__scalarProperty Is Nothing) Then
                    __scalarProperty = New EdmxEditor.Mapping.FunctionMappingScalarPropertyCollection(Me, MyBase.Name.Namespace, "ScalarProperty")
                End If
                Return __scalarProperty
            End Get
        End Property

        <XmlAttribute(DataType:="token")> _
        Public Property AssociationSet() As String
            Get
                Return Me.@AssociationSet
            End Get
            Set(ByVal value As String)
                Me.@AssociationSet = value
            End Set
        End Property

        <XmlAttribute(DataType:="token")> _
        Public Property From() As String
            Get
                Return Me.@From
            End Get
            Set(ByVal value As String)
                Me.@From = value
            End Set
        End Property

        <XmlAttribute(DataType:="token")> _
        Public Property [To]() As String
            Get
                Return Me.@To
            End Get
            Set(ByVal value As String)
                Me.@To = value
            End Set
        End Property

    End Class

End Namespace